package com.rd.student.ruanjian.class4.lichunquan.Text02;

import java.util.Scanner;

public class Test01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int layer = scanner.nextInt();
        for (int i = 1 , j = layer; i <= layer; i++) {
            while(j>1){
                if(i>=j){
                    System.out.print("*");
                }else{
                    System.out.print(" ");
                }
                j--;
            }
            while(j<=layer){
                if(i>=j){
                    System.out.print("*");
                }else{
                    System.out.print(" ");
                }
                j++;
            }
            System.out.println();
        }
        System.out.println("---------------------");
        //------2
        int max_sum = (layer*2+1);
        for (int i = 0 , j = 1; i < layer; i++) {
            while(j<max_sum){
                if(j >= layer-(i-1)  && j <=layer+(i+1)){
                    System.out.print('*');
                }else {
                    System.out.print(" ");
                }
                j++;
            }
            j=1;
            System.out.println();
        }
        //------3
        //老师解法
    }
}
